public class ITWorker {
    private WorkTypeEnum type;
    private int age;
    public static int count=0;
    public ITWorker(WorkTypeEnum type,int age){
        this.type=type;
        this.age=age;
        count++;
    }

    public WorkTypeEnum getType() {
        return type;
    }

    public void setType(WorkTypeEnum type) {
        this.type = type;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "ITWorker{" +
                "type=" + type +
                ", age=" + age +
                '}';
    }
}
